//
//  DataBaseHandler.h
//  UI21_SQLite
//
//  Created by dllo on 16/1/11.
//  Copyright © 2016年 dllo. All rights reserved.
//


// 注意: 该封装类需要导入 #import <sqlite3.h>头文件及libsqlite3.0.tbd
#import <Foundation/Foundation.h>
@class ModelForSection1;
@interface DataBaseHandler : NSObject

+ (instancetype)shareDataBaseHandler;

- (void)open;

- (void)createTable;

- (void)insertModel:(ModelForSection1 *)model;
- (BOOL)selectForId:(NSString *)name;
- (void)deleteWithId:(NSString *)spot_id;

- (NSArray *)selectAll;

- (void)closeDB;

@end
